<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class GroupMenu extends EntityMM {
	public function getFK_Menu () 
	{
		return $this->GetValStringByKey(GroupMenuAttr::$FK_Menu);
	}
	public function setFK_Menu ($value) // [String value]
	{
		$this->SetValByKey(GroupMenuAttr::$FK_Menu, $value);
	}
	public function getFK_Group () 
	{
		return $this->GetValStringByKey(GroupMenuAttr::$FK_Group);
	}
	public function setFK_Group ($value) // [String value]
	{
		$this->SetValByKey(GroupMenuAttr::$FK_Group, $value);
	}
	public function getIsChecked () 
	{
		return $this->GetValStringByKey(GroupMenuAttr::$IsChecked);
	}
	public function setIsChecked ($value) // [String value]
	{
		$this->SetValByKey(GroupMenuAttr::$IsChecked, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("GPM_GroupMenu");
		$map->setDepositaryOfEntity($Depositary->None);
		$map->setDepositaryOfMap($Depositary->Application);
		$map->setEnDesc("权限组菜�?");
		$map->setEnType($EnType->Sys);
		$map->AddTBStringPK(GroupMenuAttr::$FK_Group, NULL, "权限�?",  FALSE ,  FALSE , 0, 50, 20);
		$map->AddTBStringPK(GroupMenuAttr::$FK_Menu, NULL, "菜单",  FALSE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(GroupMenuAttr::$IsChecked,  TRUE , "是否选中",  TRUE ,  TRUE );
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
